﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<EAILogWebSite.Models.LogEntity>>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="application/vnd.ms-excel; charset=UTF-8" />
    <meta http-equiv="Content-Disposition" content="attachment;filename=myexcel.xls" />
    <title>export</title>
</head>
<body>
    <table>
        <tr>
            <th>
                Id
            </th>
            <th>
                Duration
            </th>
            <th>
                LogDateTime
            </th>
            <th>
                MsgType
            </th>
            <th>
                SenderID
            </th>
            <th>
                ReceiverID
            </th>
            <th>
                SrvOpName
            </th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <a href="http://10.164.3.3/eailog/home/detail/<%: item.Id %>" target="_blank">
                    <%: item.Id %></a>
            </td>
            <td>
                <%: item.Duration %>
            </td>
            <td>
                <%: String.Format("{0:yyyy/MM/dd HH:mm:ss}", item.LogDateTime)%>
            </td>
            <td>
                <%: item.MsgType %>
            </td>
            <td>
                <%: item.SenderID %>
            </td>
            <td>
                <%: item.ReceiverID %>
            </td>
            <td>
                <%: item.SrvOpName %>
            </td>
        </tr>
        <% } %>
    </table>
</body>
</html>
